<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8">
	<title></title>
	<link rel="stylesheet" th:href="@{/bootstrap-4.6.0-dist/css/bootstrap.min.css}">
	<link rel="stylesheet" th:href="@{/bootstrap-4.6.0-dist/css/bootstrap-icons.css}">
	<script th:src="@{/js/jquery.min.1.10.2.js}"></script>
	<style type="text/css">
		a{
			color:#000;
		}
		a:hover{
			color: #000;
			text-decoration: none;
		}
		nav{
			background: #007bff!important;
		    color: #fff;
		    height: 55px;
		    line-height: 55px;
		}
		nav>a:hover{
			color: #fff;
			text-decoration: none;
		}
		nav>a{
			color: #fff;
		    display: inline-block;
		    font-size: 19px;
		    width: 200px;
		    text-align: center;
		}
		nav .loginfo{
			float: right;
		}
		.loginfo span{
			display: inline-block;
		}
		.loginfo a{
			color: #fff;
		}
		.content{
			margin: 30px;
		}
	</style>
</head>

<body>

<!--	<nav>-->
<!--	  <a class="title" href="#">-->
<!--	  	<i class="bi bi-columns-gap"></i>-->
<!--	  	在线考试系统-->
<!--	  </a>-->
<!--	  <div class="loginfo">-->
<!--	    <span >欢迎，Helloworld</span>-->
<!--	    <a class="btn btn-link" href="#" title="登出">-->
<!--	    	<i class="bi bi-arrow-down-left-square"></i></a>-->
<!--	  </div>-->
<!--	</nav>-->

	<div class="content">
		<h3 style="margin-bottom: 20px;">我的考试</h3>
		<table class="table table-hover">
			<thead  class="thead-light">
				<tr>
					<th>#</th>
					<th>试卷名</th>
					<th>总分</th>
					<th>题目数</th>
					<th>时长(分钟)</th>
					<th>状态</th>
					<th>分数</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<tr th:each="item : ${listPaperSubmitLog}">
					<td th:text="${item.id}"></td>
					<td th:text="${item.paper.name}"></td>
					<td th:text="${item.paper.totalScore}"></td>
					<td th:text="${item.paper.questionNum}"></td>
					<td th:text="${item.paper.minutes}"></td>
					<td th:if="${item.submitTime} != null">已完成</td>
					<td th:if="${item.submitTime} == null">未完成</td>
					<td th:text="${item.score}"></td>
					<td>
						<a th:if="${item.submitTime} == null" th:href="@{/exam}" class="btn btn-link">进入考试</a>
						<a th:if="${item.submitTime} != null" href="#" class="btn btn-link">查看试卷</a>
					</td>
				</tr>
			</tbody>
		</table>
		
	</div>
	
</body>


</html>